<template>
    <div>
        <div v-for="item in photoList" class="pic">
            <img :src="item" >
        
        </div>
    </div>
</template>

<script >
    export default {
        data(){
        return {
            id:this.$route.params.id,
            photoList:[]
            }
        },
        created(){
            this.getContent()
        },
        methods:{
        getContent(){
            this.$http.get('http://localhost:3000/data/'+this.id).then(ret=>{
                this.photoList=ret.body.photo_info
            })
        }
        }
    }

</script>

<style lang="scss" scpoed>
    .pic{
        img{
            width: 100%;
        }
    }

</style>